<?php
	$today = date('Y-m-d');
	//echo $today;
	
	//require_once("../inc/connect.php");
	$host = "127.0.0.1";
	$mySqlUser = "root";
	$mySqlPassword = "14112534";
	
	$con = mysql_connect($host,$mySqlUser,$mySqlPassword);
	mysql_query("USE project;");
	
	if (!$con) {
		header("content-type: text/plain; charset=tis-620");
  		die('ไม่สามารถติดต่อฐานขอมูลได้ : ' . mysql_error());
  	}
  	
	$result = mysql_query("SELECT * FROM table1 WHERE date_start LIKE '%$today%' AND status = '0'");
	$num_row = mysql_num_rows($result);
	
	echo $num_row
?>